﻿using Futurism.Universal.Foundation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;

namespace Futurism.Example.Shell
{
    [Export]
    public partial class ShellView : ContentPage
    {
        public ShellView()
        {
            InitializeComponent();
        }

        [Import]
        public ShellView(RegionManager regionManager)
            : this()
        {
            regionManager.RegisterRegion("Header", this.Header);
            regionManager.RegisterRegion("Content", this.Content);
        }

        [Import]
        public ShellViewModel ViewModel
        {
            set
            {
                BindingContext = value;
            }
        }
    }
}